/*
 * CloudBeaver - Cloud Database Manager
 * Copyright (C) 2020-2024 DBeaver Corp and others
 *
 * Licensed under the Apache License, Version 2.0.
 * you may not use this file except in compliance with the License.
 */
.container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;

  /* pointer outline */
  &::before {
    content: '';
    position: absolute;
    background: transparent;
  }
}

.container:hover .resizeButton {
  opacity: 1;
}

.resizeButton {
  opacity: 0;
}

.container[data-s-split='vertical'] {
  flex-direction: column;
  cursor: ew-resize;
  height: 100%;
  width: 5px;
  left: -2px;

  &[data-s-mode='minimize'] {
    left: 0;
  }

  &[data-s-mode='maximize'] {
    left: -2px;
  }
}

.container[data-s-split='vertical'].inverse {
  flex-direction: column-reverse;
}

.container[data-s-split='horizontal'] {
  flex-direction: row;
  cursor: ns-resize;
  width: 100%;
  height: 5px;
  top: -2px;

  &[data-s-mode='minimize'] {
    top: 0;
  }

  &[data-s-mode='maximize'] {
    top: -2px;
  }
}

.container[data-s-split='horizontal'].inverse {
  flex-direction: row-reverse;
}
